﻿<%@ Page Title="Gerenciar matriculas de uma turma" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Matricula_ListarPorTurma.aspx.cs" Inherits="ProjetoJornada.Interno.Matricula_ListarPorTurma" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <title>Gerenciar Cursos - Jornada Citi</title>
    <script src="../javascript/menu_dropdown.js" type="text/javascript"></script>

    <link href="../CSS/cadastro.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 151px;
        }
        .style2
        {
            width: 202px;
        }
        .style3
        {
            width: 120px;
        }
        #ctl00_ContentPlaceHolder1_btnCarregador
        {
            visibility: collapse;
        }
    </style>
    
    <script src="../javascript/jquery-1-3-2.min.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
        <asp:Label ID="lblMensagem" ForeColor="Red" runat="server" Text=""></asp:Label>
        <br />
        <asp:Label ID="Label1" runat="server" Text="Turmas" Font-Bold="true"></asp:Label>
        <asp:DropDownList ID="ddlTurmas" runat="server" AutoPostBack="true" 
            onselectedindexchanged="ddlTurmas_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <asp:Image ID="imgLoading" ImageUrl="~/imagens/ajax-loader.gif" runat="server" />
                Carregando...
            </ProgressTemplate>
        </asp:UpdateProgress>
     
    </div>
    <asp:GridView ID="GridView_Matricula" runat="server" AutoGenerateColumns="False" 
        onrowdeleting="GridView_Matricula_RowDeleting" BackColor="White" 
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
        ForeColor="Black" GridLines="Vertical" 
            onrowdatabound="GridView_Matricula_RowDataBound">
        <Columns>
            <asp:BoundField AccessibleHeaderText="Nome" DataField="Aluno.Nome" HeaderText="Nome" 
                Visible="False" />
            <asp:TemplateField HeaderText="CPF">
                <ItemTemplate>
                    <asp:Label ID="lblCpf" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Nome">
                <ItemTemplate>
                    <asp:Label ID="lblNome" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Curso">
                <ItemTemplate>
                    <asp:Label ID="lblCurso" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Data da Matricula">
                <ItemTemplate>
                    <asp:Label ID="lblData" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Status Pagamento">
                <ItemTemplate>
                    <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
                <ItemStyle Height="20px" HorizontalAlign="center"/>
            </asp:TemplateField>            
           
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='<%#"Matricula_Editar.aspx?id=" + Eval("Id")%>'>
                        <asp:Image ID="imgEdit" runat="server" BorderStyle="None" ImageUrl="../imagens/edit.png" />
                    </a>
                </ItemTemplate>
                <ItemStyle Height="20px" HorizontalAlign="center"/>
            </asp:TemplateField>            
            
            <asp:CommandField ShowDeleteButton="True" ButtonType="Image" 
                DeleteImageUrl="~/imagens/delete.png" DeleteText="" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:CommandField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#CCCCCC" />
    </asp:GridView>
   
    </ContentTemplate>
</asp:UpdatePanel>

</asp:Content>